home *** CD-ROM | disk | FTP | other *** search
- global gAssessmentData, gMasterData
-
- on questionNext
- set vQuestion to the questionNum of gAssessmentData
- if vQuestion < 49 then
- set vQuestion to vQuestion + 1
- set the questionNum of gAssessmentData to vQuestion
- nextQuest()
- if vQuestion = 49 then
- set the member of sprite 3 to member "go on text"
- goNarrator(gMasterData, "09a")
- end if
- end if
- end
-
- on questionPrev
- set vQuestion to the questionNum of gAssessmentData
- if vQuestion > 1 then
- set vQuestion to vQuestion - 1
- set the questionNum of gAssessmentData to vQuestion
- nextQuest()
- if vQuestion = 48 then
- set the member of sprite 3 to member "instructions"
- end if
- end if
- end
-
- on nextQuest
- set the member of sprite the artSprite of gAssessmentData to member ("questArt" & the questionNum of gAssessmentData)
- resetIndicator()
- updateStage()
- end
-
- on setIndicator vNumber
- puppetSprite(the triangleSp of gAssessmentData, 1)
- set setPoints to [point(83, 299), point(135, 299), point(187, 299), point(240, 299), point(294, 299), point(346, 299), point(402, 299), point(454, 299), point(507, 299), point(559, 299)]
- set the loc of sprite the triangleSp of gAssessmentData to getAt(setPoints, vNumber)
- setAt(the clickChoices of gAssessmentData, the questionNum of gAssessmentData, vNumber)
- end
-
- on resetIndicator
- set vUserChoice to getAt(the clickChoices of gAssessmentData, the questionNum of gAssessmentData)
- if vUserChoice = 0 then
- puppetSprite(the triangleSp of gAssessmentData, 0)
- else
- setIndicator(vUserChoice)
- end if
- end
-
- on cipherNgwan
- set vTotalZeros to 0
- repeat with x in the clickChoices of gAssessmentData
- if x = 0 then
- set vTotalZeros to vTotalZeros + 1
- end if
- end repeat
- if vTotalZeros > 25 then
- alert("You have not answered enough questions to continue this activity.")
- else
- goresults()
- end if
- end
-